package com.ruoyi.buss.grid.cj.service.impl;

import java.util.List;
import com.ruoyi.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.buss.grid.cj.mapper.DataWgWgcjVillageHzMapper;
import com.ruoyi.buss.grid.cj.domain.DataWgWgcjVillageHz;
import com.ruoyi.buss.grid.cj.service.IDataWgWgcjVillageHzService;

/**
 * 网格村居土地汇总(关联统计)Service业务层处理
 * 
 * @author sxy
 * @date 2021-07-16
 */
@Service
public class DataWgWgcjVillageHzServiceImpl implements IDataWgWgcjVillageHzService 
{
    @Autowired
    private DataWgWgcjVillageHzMapper dataWgWgcjVillageHzMapper;

    /**
     * 查询网格村居土地汇总(关联统计)
     * 
     * @param id 网格村居土地汇总(关联统计)ID
     * @return 网格村居土地汇总(关联统计)
     */
    @Override
    public DataWgWgcjVillageHz selectDataWgWgcjVillageHzById(String id)
    {
        return dataWgWgcjVillageHzMapper.selectDataWgWgcjVillageHzById(id);
    }

    /**
     * 查询网格村居土地汇总(关联统计)列表
     * 
     * @param dataWgWgcjVillageHz 网格村居土地汇总(关联统计)
     * @return 网格村居土地汇总(关联统计)
     */
    @Override
    public List<DataWgWgcjVillageHz> selectDataWgWgcjVillageHzList(DataWgWgcjVillageHz dataWgWgcjVillageHz)
    {
        return dataWgWgcjVillageHzMapper.selectDataWgWgcjVillageHzList(dataWgWgcjVillageHz);
    }

    /**
     * 新增网格村居土地汇总(关联统计)
     * 
     * @param dataWgWgcjVillageHz 网格村居土地汇总(关联统计)
     * @return 结果
     */
    @Override
    public int insertDataWgWgcjVillageHz(DataWgWgcjVillageHz dataWgWgcjVillageHz)
    {
        dataWgWgcjVillageHz.setCreateTime(DateUtils.getNowDate());
        return dataWgWgcjVillageHzMapper.insertDataWgWgcjVillageHz(dataWgWgcjVillageHz);
    }

    /**
     * 修改网格村居土地汇总(关联统计)
     * 
     * @param dataWgWgcjVillageHz 网格村居土地汇总(关联统计)
     * @return 结果
     */
    @Override
    public int updateDataWgWgcjVillageHz(DataWgWgcjVillageHz dataWgWgcjVillageHz)
    {
        dataWgWgcjVillageHz.setUpdateTime(DateUtils.getNowDate());
        return dataWgWgcjVillageHzMapper.updateDataWgWgcjVillageHz(dataWgWgcjVillageHz);
    }

    /**
     * 批量删除网格村居土地汇总(关联统计)
     * 
     * @param ids 需要删除的网格村居土地汇总(关联统计)ID
     * @return 结果
     */
    @Override
    public int deleteDataWgWgcjVillageHzByIds(String[] ids)
    {
        return dataWgWgcjVillageHzMapper.deleteDataWgWgcjVillageHzByIds(ids);
    }

    /**
     * 删除网格村居土地汇总(关联统计)信息
     * 
     * @param id 网格村居土地汇总(关联统计)ID
     * @return 结果
     */
    @Override
    public int deleteDataWgWgcjVillageHzById(String id)
    {
        return dataWgWgcjVillageHzMapper.deleteDataWgWgcjVillageHzById(id);
    }
}
